package com.Example;

import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.graphics.g2d.Animation;
import com.badlogic.gdx.graphics.g2d.TextureAtlas;
import com.badlogic.gdx.graphics.g2d.TextureRegion;

public class Assets {
	static TextureAtlas atlas;
	static TextureAtlas atlas1;
	
	public static TextureRegion ballRegion;
	public static TextureRegion groundRegion;
	public static TextureRegion backRegion;
	public static Animation pigeonAnimation;
	public static TextureRegion turretBase;
	public static TextureRegion turretNozzle;
	public static TextureRegion ground;
	public static TextureRegion sky;
	public static TextureRegion mountains;
	public static TextureRegion barRed;
	public static TextureRegion barBlue;
	public static TextureRegion barGreen;
	
	public static void Load()
	{
		String textureDir = "Images/";
		String textureFile = textureDir+"/examplepack" ;
		String textureFile1 = textureDir+"/atpigeon" ;
		atlas = new TextureAtlas(Gdx.files.internal(textureFile), Gdx.files.internal(textureDir));
		atlas1 = new TextureAtlas(Gdx.files.internal(textureFile1), Gdx.files.internal(textureDir));

//		LoadFont();
		LoadTextures();
		
	}

	private static void LoadTextures() {
		// TODO Auto-generated method stub
		backRegion=atlas.findRegion("back1");
		groundRegion=atlas.findRegion("ground1");
		ballRegion=atlas.findRegion("ball1");
		pigeonAnimation = new Animation(0.2f, atlas1.findRegion("pa"),atlas1.findRegion("pb"),atlas1.findRegion("pc"),atlas1.findRegion("pd"));
		barGreen=atlas1.findRegion("bargreen");
		barBlue=atlas1.findRegion("barblue");
		barRed=atlas1.findRegion("barred");
		
		mountains =atlas1.findRegion("mountains");
		sky =atlas1.findRegion("sky");
		ground =atlas1.findRegion("ground");
		
		turretNozzle =atlas1.findRegion("turretnozzle");
		turretBase =atlas1.findRegion("turretbase");
	}
	

	public static void Dispose()
	{
		atlas.dispose();
		
	}
}
